<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Welcome extends Controller {

	public function action_index()
	{
		$username = 'admin';
		$password = 'pass';
		$user = ORM::factory('user');
		$user->username = $username;
		$user->password = $password;
		$user->add(ORM::factory('role', 'login'));

		$user->save();
		debug::print_r($user);
	}

} // End Welcome
